﻿@inherits Blazorise.Button
@if ( IsAddons )
{
    <div class="control">
        <button @ref="@ElementRef" id="@ElementId" type="@Type.ToButtonTypeString()" class="@ClassNames" style="@StyleNames" disabled="@Disabled" aria-pressed="@Active" @onclick="@ClickHandler" @attributes="@Attributes">
            @ChildContent
        </button>
    </div>
}
else
{
    @if ( ParentIsField )
    {
        <div class="control">
            <button @ref="@ElementRef" id="@ElementId" type="@Type.ToButtonTypeString()" class="@ClassNames" style="@StyleNames" disabled="@Disabled" aria-pressed="@Active" @onclick="@ClickHandler" @attributes="@Attributes">
                @ChildContent
            </button>
        </div>
    }
    else
    {
        <button @ref="@ElementRef" id="@ElementId" type="@Type.ToButtonTypeString()" class="@ClassNames" style="@StyleNames" disabled="@Disabled" aria-pressed="@Active" @onclick="@ClickHandler" @attributes="@Attributes">
            @ChildContent
        </button>
    }
}
